package com.hr.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;

import java.util.ArrayList;
import java.util.List;

/**
 *  定义侧边栏菜单
 *
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Menu
{
    @Id
    private Integer id;
    private String url;
    private String path;
    private String component;
    private String name;
    private String iconCls;
    private Boolean keepAlive;
    private String require;//需要的权限
    private Integer parentId;
    private Boolean enabled;
    private List<Menu> children=new ArrayList<>();
}
